from typing import Any

from recruit.adapter.database.models import ResumeWork
from tests.adapter.models.utils import (
    check_fields,
    check_model_resume,
)


def test_resume_work_model(get_resume_work) -> Any:
    check_model_resume(ResumeWork, get_resume_work)


def test_field() -> None:
    fields = (
        'id',
        'resume_id',
        'start_work',
        'end_work',
        'position',
        'company',
        'workplace'
    )
    check_fields(fields, ResumeWork)
